const {Breeze} = require("springbreeze") ,
    Web = require("../lib/WebMiddleware") ,
    DefaultConfig = require("../../springbreeze/lib/DefaultConfig") ,
    Path = require("path") ,
    ErrorHandler = require("../lib/action/handler/ErrorHandler"),
    PackageHandler = require("../lib/action/handler/PackageHandler")
    // ErrorHandler = require("../lib/action/handler/ErrorHandler")

DefaultConfig.middlewares.push({
    name : "web" ,
    require : Web ,
    desc : "web服务" ,
    port : 9002 ,
    actionPath : Path.join( __dirname , "action" ),
    handler : [
        // { name : "错误统一处理插件" , entity : ErrorHandler } ,
        // { name : "请求统一处理插件" , entity : PackageHandler } ,
    ]
})

const breeze = new Breeze( DefaultConfig )

breeze.start()